/**
 * FileName: PurchaseRcdServiceImpl
 * Author:   Molzx
 * Date:     2019/10/5 17:17
 * Description: 采购申请审批记录接口实现
 */
package com.dgut.Service.impl;

import com.dgut.Service.IPurchaseRcdService;
import com.dgut.dao.IPurchaseRcdDao;
import com.dgut.domain.PurchaseRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 〈采购申请审批记录接口实现〉
 */
@Service
public class PurchaseRcdServiceImpl implements IPurchaseRcdService {
    @Autowired
    IPurchaseRcdDao purchaseRcdDao;


    @Override
    public List<PurchaseRecord> findAll() {
        return purchaseRcdDao.findAll();
    }

    @Override
    public List<PurchaseRecord> findAllLimit(PurchaseRecord purchaseRecord) {
        List<PurchaseRecord> purchaseRecords = purchaseRcdDao.findAllLimit(purchaseRecord);
        return purchaseRecords;
    }

    @Override
    public Integer findAllCount(PurchaseRecord purchaseRecord) {
        return purchaseRcdDao.findAllCount(purchaseRecord);
    }

    @Override
    public List<PurchaseRecord> findById(String id) {
        return purchaseRcdDao.findById(id);
    }

    @Override
    public Integer savePurchaseRecord(PurchaseRecord purchaseRecord) {

        return purchaseRcdDao.savePurchaseRecord(purchaseRecord);
    }

    @Override
    public Integer deletePurchaseRecord(String id) {
        return purchaseRcdDao.deletePurchaseRecord(id);
    }
}
